/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 22:19:07  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.service;

import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import com.joysuch.wwyt.edu.bean.EduCourseCoursewareDetailBean;
import com.joysuch.wwyt.edu.bean.EduCourseCoursewareEditBean;
import com.joysuch.wwyt.edu.bean.EduCourseCoursewareListBean;
import com.joysuch.wwyt.edu.bean.EduCourseCoursewareListBean.SearchEduCourseCourseware;
import com.joysuch.wwyt.edu.entity.EduCourseCourseware;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface EduCourseCoursewareService {

    public EduCourseCourseware add(EduCourseCoursewareEditBean entity);

    void update(EduCourseCoursewareEditBean entity);

    Page<EduCourseCoursewareListBean> findByPage(Pageable page, SearchEduCourseCourseware condition);

    void delete(Long id) throws BusinessRestrictionsException;

    EduCourseCoursewareDetailBean getById(Long id);

    EduCourseCourseware findById(Long id);

    int deleteByCoursewareId(Long id);

    int deleteByCourseId(Long id);
}
